package com.minglead.crawler.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;

@Data
@TableName("DC_DATA_GRAB_LOG")
public class DcDataGrabLogEntity extends BaseEntity {
    /**
     *爬取日期
     */
    @Schema(description = "爬取日期")
    @TableField(value = "GRAB_TIME", fill = FieldFill.UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date grabTime;
    /**
     * 爬取平台
     */
    @Schema(description = "爬取平台")
    @TableField(value = "PLATFORM", fill = FieldFill.UPDATE)
    private String platform;
    /**
     * 爬取网址
     */
    @Schema(description = "爬取网址")
    @TableField(value = "ADDRESS", fill = FieldFill.UPDATE)
    private String address;
    /**
     * 爬取条数
     */
    @Schema(description = "爬取条数")
    @TableField(value = "TOTAL_NUM", fill = FieldFill.UPDATE)
    private String totalNum;
    /**
     * 入库条数
     */
    @Schema(description = "入库条数")
    @TableField(value = "REPO_NUM", fill = FieldFill.UPDATE)
    private Long repoNum;
    /**
     * 数据类型
     */
    @Schema(description = "数据类型")
    @TableField(value = "DATA_CATEGORY", fill = FieldFill.UPDATE)
    private String dataCategory;
    /**
     * 所属模块
     */
    @Schema(description = "所属模块[MACRO或者BIGMERC]")
    @TableField(value = "MODULE_TYPE", fill = FieldFill.UPDATE)
    private String moduleType;

}
